package tests;

import junit.framework.Assert;

import org.junit.Test;

import containers.ManagerContainer;

import entities.Manager;

/**
 * @author Samuel Ferguson sff803
 */
public class TestManager {

	/**
	 * The rest of the tests test various methods of Manager
	 */
	@Test
	public void testSetInterest() {
		Manager.interestRate = 0.5;
		Assert.assertTrue(Manager.interestRate == 0.5);
	}

	/**
	 * The rest of the tests test various methods of Manager
	 */
	@Test
	public void testGetInterest() {
		Manager.interestRate = 0.5;
		Assert.assertTrue(Manager.interestRate == 0.5);
	}

	/**
	 * The rest of the tests test various methods of Manager
	 */
	@Test
	public void testPassword() {
		Manager.password = "god";
		Assert.assertTrue(Manager.password == "god");
	}

	/**
	 * The rest of the tests test various methods of Manager
	 */
	@Test
	public void testID() {
		Manager.id = 0;
		Assert.assertTrue(Manager.id == 0);
	}

	/**
	 * The rest of the tests test various methods of Manager
	 */
	@Test
	public void testContainer() {
		Assert.assertTrue(Manager.class == ManagerContainer.get(0));
	}

}
